package com.realtyManage.springboot.Utils;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.realtyManage.springboot.Config.WxProgramPayConfig;
import com.realtyManage.springboot.Service.IUserService;
import lombok.extern.slf4j.Slf4j;
import org.apache.http.HttpEntity;
import org.apache.http.client.methods.CloseableHttpResponse;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.impl.client.CloseableHttpClient;
import org.apache.http.impl.client.HttpClients;
import org.springframework.beans.factory.annotation.Autowired;

import javax.servlet.http.HttpServletRequest;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;

@Slf4j
public class AuthenticationAuthorityUtil {

    /**
     * 根据 获取登录人id查看是否有此操作权
     * @param request
     * @return
     * @author 杭州素色网络科技有限公司
     */
    @Autowired
    private static IUserService userService;

    public static int Verification(String userId,String qx) {
        return userService.findUserQx(Integer.valueOf(userId),qx);
    }

}
